<?php
/**
 * Created by PhpStorm.
 * User: xy01
 * Date: 2021/8/18
 * Time: 19:54
 * 日志消息队列
 */
namespace App\Service;
use App\Model\LogModel;

class LogQueue
{
    /*
     * 消息日志写入
     */
    public static function logInsert($data=[]){

        $data=json_decode($data,true);


        $time=time();
        LogModel::insert(['log_id'=>$data['log_id'],'event_name'=>$data['event_name'],'datas'=>json_encode($data['datas']),'add_time'=>$time]);


    }


}